package com.lhl.blog.service;

import com.lhl.blog.common.pojo.request.AddBlogInfoParam;
import com.lhl.blog.common.pojo.request.UpdateBlogInfoParam;
import com.lhl.blog.common.pojo.response.BlogInfoResponse;
import jakarta.validation.constraints.NotNull;

import java.util.List;
//真实的实现类
public interface BlogService {
    List<BlogInfoResponse> getList();

    BlogInfoResponse getBlogDetail(Integer blogId);

    Boolean addBlog(AddBlogInfoParam param);

    Boolean updateBlog(UpdateBlogInfoParam param);

    Boolean deleteBlog(@NotNull Integer blogId);
}
